<?php

class messModel extends Model {

    private $table = '`sd_webmess`';

    public function add($data) {        
        return $this->_insert($this->table, $data);
    }

    public function memberlist($id){
        Return $this->_all("SELECT * FROM " . $this->table . " WHERE member_id = {$id}");
    }
    

}
